#ifndef FIB_H_
#define FIB_H_
int fib(int n) {
	if (n == 1) return 0;
	if (n == 2) return 1;
	int a = 0, b = 1;
	int count = 3;
	int c = a + b;
	while (count <= n) {
		c = a + b;
		a = b;
		b = c;
		count++;
	}
	return c;
}
#endif